
import Layout from '@/layout'

export default {
  // 一级路由的地址
  path: '/questions',
  // 是用布局作为组件
  component: Layout,
  // 【名称，非常的重要，有可能是作为权限的筛选标识】
  name: 'questions',
  meta: { title: '题库管理', icon: 'table' },
  children: [
    {
      path: 'list',
      component: () => import('@/views/questions/list'),
      name: 'questions-list',
      meta: {
        title: '基础题库',
        icon: 'table'
      }
    },
    {
      path: 'choice',
      component: () => import('@/views/questions/choice'),
      name: 'questions-choice',
      meta: {
        title: '精选题库',
        icon: 'table'
      }
    },
    {
      path: 'new',
      component: () => import('@/views/questions/new'),
      name: 'questions-new',
      meta: {
        title: '试题录入',
        icon: 'table'
      }
    },
    {
      path: 'randoms',
      component: () => import('@/views/questions/randoms'),
      name: 'questions-randoms',
      meta: {
        title: '组题列表',
        icon: 'table'
      }
    }
  ]
}
